package com.ljt.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ljt.business.entity.Product;
import com.ljt.business.mapper.ProductMapper;
import com.ljt.business.service.ProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ljt
 * @since 2021-07-05
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
    @Override
    public IPage<Product> queryProductWithCategoryName(Page<Product> page, QueryWrapper<Product> queryWrapper) {
        return this.baseMapper.queryProductWithCategoryName(page, queryWrapper);
    }

    @Override
    public Page<Product> queryAllProductByCondition(Page applyForPage, String name) {
        return this.baseMapper.queryAllProductByCondition(applyForPage, name);
    }
}
